#![warn(missing_debug_implementations)]
#![allow(dead_code)]

use super::app;
use super::audioplayer;
use super::compose;
use super::config;
use super::drawbehaviour;
use super::globals;
use super::input;
use super::pens;
use super::render;
use super::sheet;
use super::strokes;
use super::strokesstate;
use super::ui;
use super::utils;

use gettextrs::LocaleCategory;
use gtk4::prelude::*;
extern crate gstreamer as gst;
extern crate nalgebra as na;
extern crate parry2d_f64 as p2d;

use self::config::{GETTEXT_PACKAGE, LOCALEDIR};

pub fn main() {
    pretty_env_logger::init();
    log::info!("... env_logger initialized");

    gettextrs::setlocale(LocaleCategory::LcAll, "");
    gettextrs::bindtextdomain(GETTEXT_PACKAGE, LOCALEDIR).expect("Unable to bind the text domain");
    gettextrs::textdomain(GETTEXT_PACKAGE).expect("Unable to switch to the text domain");

    let app = app::RnoteApp::new();
    app.run();
}
